package com.example.awayreply;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

public class StartupService extends Service
{
	@Override
	public IBinder onBind(Intent arg0) 
	{
		return null;
	}
	
	public void onDestroy()
	{
        //Toast.makeText(this, "Away Reply Stopped", Toast.LENGTH_LONG).show();
    }

    @Override
    public void onStart(Intent intent, int startid)
    {
        Intent intents = new Intent(getBaseContext(),MainActivity.class);
        
        intents.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intents);
        
        //Toast.makeText(this, "Away Reply Started", Toast.LENGTH_LONG).show();
    }

}
